package com.zheng.redpacket.server.serivce;

import com.zheng.redpacket.server.dto.RedPacketDto;

import java.math.BigDecimal;

/**
 * 抢红包业务逻辑接口
 */
public interface RedPacketService {
    /**
     * 发红包
     * @param dto
     * @return
     * @throws Exception
     */
    public String handOut(RedPacketDto dto) throws Exception;

    /**
     * 抢红包
     * @param userId
     * @param redId
     * @return
     * @throws Exception
     */
    public BigDecimal rod(Integer userId, String redId) throws Exception;
}
